package com.ycode.bang.anbang.network;

import com.google.gson.Gson;

import java.lang.reflect.Type;

/**
 * @author:jeney
 * @date:2015/5/19
 * @todo:
 */
public class GsonParser {
    public static Gson mGson = new Gson();

    public static <T> T get(String jsonString, Class<T> t) {
        return mGson.fromJson(jsonString, t);
    }

    public static <T> T get(String jsonString, Type type) {
        return mGson.fromJson(jsonString, type);
    }
}
